package com.ws.haungjia.Service.ServiceImp;

import com.ws.haungjia.Bean.HoutaiUser;
import com.ws.haungjia.Bean.Huixian;
import com.ws.haungjia.Service.HuserServiec;
import com.ws.haungjia.mapper.HuserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
@Service
public class HuserServiceImp implements HuserServiec {

    @Autowired
    private HuserMapper huserMapper;
    @Override
    public List<HoutaiUser> cha() {
        return huserMapper.cha();
    }

    @Override
    public int zengjia(String hname, String hpass, Date hshijian, String htouxiang) {
        return huserMapper.zengjia(hname,hpass,hshijian,htouxiang);
    }

    @Override
    public int shan(int id) {
        return huserMapper.shan(id);
    }

    @Override
    public HoutaiUser huixian(int id) {
        return huserMapper.huixian(id);
    }

    @Override
    public int xiugai(HoutaiUser houtaiUser) {
        return huserMapper.xiugai(houtaiUser);
    }

    @Override
    public List<HoutaiUser> sousuo(Huixian huiXian) {
        return huserMapper.sosuo(huiXian);
    }

    @Override
    public int chongzhi(int id, String mima) {
        return huserMapper.chongzhi(id,mima);
    }
}
